home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-04-12 | 1.5 KB | 64 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="6"
- "COUNT"="2"
- "UIPATH"="Network\Security\Shares"
- "NAME"="Hard Disk Shares Access"
- "VERSION"="1.15"
- "OSVERSION"="010101"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Enable auto HD shares (Workstation)"
- "TEXT 2"="Enable auto HD shares (Server)"
- "DESCRIPTION 1"="This option allows you to control if Windows should automatically create HD shares (C$, D$, E$ and so on)."
- "DESCRIPTION 2"="Please select the option for your version of Windows NT, either Workstation or Server."
- "DESCRIPTION 3"=""
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
- "COMMENT 2"="Thanks to Alex Morris (alexmorris@uk.ibm.com) for his help!"
-
-
- sp="HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters\"
- sV1="AutoShareWks"
- sV2="AutoShareServer"
-
- Sub Plugin_Initialize
- i=RegReadValue(sP&sV1)
- if i=1 or IsEmpty(i) then
- SetUIElement 1,true
- end if
-
- i=RegReadValue(sP&sV2)
- if i=1 or IsEmpty(i) then
- SetUIElement 2,true
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- Call RegWriteValue(sP&sV1,1,2)
- else
- Call RegWriteValue(sP&sV1,0,2)
- end if
-
- b=GetUIElement(2)
- if b=true then
- Call RegWriteValue(sP&sV2,1,2)
- else
- Call RegWriteValue(sP&sV2,0,2)
- end if
-
- Restart
- End Sub
-
-
- Sub Plugin_Terminate
- End Sub
-
-
-
-